package com.yicong.ants.bean.base;

import android.text.TextUtils;

/**
 * @author cchao
 * @version 2019-04-29.
 */
public class MeituRespBean {

    public String status;
    private String msg;

    public MeituRespBean() {
    }

    public boolean isCodeSuc() {
        return "1".equals(status);
    }

    public boolean isCodeFail() {
        return !isCodeSuc();
    }

    public String getMsg() {
        if (!TextUtils.isEmpty(msg)) {
            return msg;
        }
        return "";
    }

    public String getStatus() {
        return this.status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof MeituRespBean)) return false;
        final MeituRespBean other = (MeituRespBean) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$status = this.getStatus();
        final Object other$status = other.getStatus();
        if (this$status == null ? other$status != null : !this$status.equals(other$status))
            return false;
        final Object this$msg = this.getMsg();
        final Object other$msg = other.getMsg();
        if (this$msg == null ? other$msg != null : !this$msg.equals(other$msg)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof MeituRespBean;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $status = this.getStatus();
        result = result * PRIME + ($status == null ? 43 : $status.hashCode());
        final Object $msg = this.getMsg();
        result = result * PRIME + ($msg == null ? 43 : $msg.hashCode());
        return result;
    }

    public String toString() {
        return "MeituRespBean(status=" + this.getStatus() + ", msg=" + this.getMsg() + ")";
    }
}
